package com.gitee.cirnochat.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gitee.cirnochat.user.model.entity.Friend;
import com.gitee.cirnochat.user.model.entity.FriendInfo;
import com.gitee.cirnochat.user.model.vo.resp.FriendVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author FlanChan
* @description 针对表【friend(好友关系表)】的数据库操作Mapper
* @createDate 2025-04-20 12:35:47
* @Entity cirno.chat.model.entity.Friend
*/
public interface FriendMapper extends BaseMapper<Friend> {
    List<FriendInfo> pageFriends(@Param("page") Page<FriendVo> page, @Param("userId") Long userId, @Param("keyword") String keyword, int sort);

    List<FriendInfo> selectFriends(@Param("userId") Long userId);

    FriendInfo selectFriendById(@Param("friendId") Long id, @Param("userId") Long userId);
}




